<template>
  <div class="infoCell">
    <mt-cell
      :title="item.title"
      :label="item.info"
      v-for="(item, index) in infoList"
      :key="index"
    >
      <img slot="icon" :src="item.image" width="50" height="50" />
    </mt-cell>
  </div>
</template>

<script>
export default {
  name: "InfoCell",
  props: {
    infoList: {
      type: Array,
    },
  },
  data() {
    return {};
  },

  //计算属性，会监听依赖属性值随之变化
  computed: {},

  //状态监听
  watch: {},

  //过滤器
  filters: {},

  //方法
  methods: {},

  //组件
  components: {},

  //生命周期 - 实例完成
  created() {},

  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
};
</script>

<style lang='scss'>
.infoCell{
  height: 100%;
}
.infoCell .mint-cell img {
  float: left;
  margin-right: 10px;
  border-radius: 50%;
}

.infoCell .mint-cell-title {
  overflow: hidden;
}

.infoCell .mint-cell-label {
  margin: 12px auto 0 60px;
  font-size: 14px;
  width: 70%;
  line-height: 20px;
  word-break:break-all
}

.infoCell .mint-cell-wrapper {
  background: none;
}
.mint-cell:last-child {
  background: none;
}
.infoCell .mint-cell {
  padding: 10px 0;
  box-sizing: border-box;
}
</style>
